﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C37 RID: 3127
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MusicRhythmFinishLevelCsReq : IMessage<MusicRhythmFinishLevelCsReq>, IMessage, IEquatable<MusicRhythmFinishLevelCsReq>, IDeepCloneable<MusicRhythmFinishLevelCsReq>, IBufferMessage
	{
		// Token: 0x1700276C RID: 10092
		// (get) Token: 0x06008BD0 RID: 35792 RVA: 0x00174111 File Offset: 0x00172311
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MusicRhythmFinishLevelCsReq> Parser
		{
			get
			{
				return MusicRhythmFinishLevelCsReq._parser;
			}
		}

		// Token: 0x1700276D RID: 10093
		// (get) Token: 0x06008BD1 RID: 35793 RVA: 0x00174118 File Offset: 0x00172318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MusicRhythmFinishLevelCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700276E RID: 10094
		// (get) Token: 0x06008BD2 RID: 35794 RVA: 0x0017412A File Offset: 0x0017232A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MusicRhythmFinishLevelCsReq.Descriptor;
			}
		}

		// Token: 0x06008BD3 RID: 35795 RVA: 0x00174131 File Offset: 0x00172331
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmFinishLevelCsReq()
		{
		}

		// Token: 0x06008BD4 RID: 35796 RVA: 0x00174139 File Offset: 0x00172339
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmFinishLevelCsReq(MusicRhythmFinishLevelCsReq other) : this()
		{
			this.fullCombo_ = other.fullCombo_;
			this.scoreId_ = other.scoreId_;
			this.star_ = other.star_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008BD5 RID: 35797 RVA: 0x00174176 File Offset: 0x00172376
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmFinishLevelCsReq Clone()
		{
			return new MusicRhythmFinishLevelCsReq(this);
		}

		// Token: 0x1700276F RID: 10095
		// (get) Token: 0x06008BD6 RID: 35798 RVA: 0x0017417E File Offset: 0x0017237E
		// (set) Token: 0x06008BD7 RID: 35799 RVA: 0x00174186 File Offset: 0x00172386
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool FullCombo
		{
			get
			{
				return this.fullCombo_;
			}
			set
			{
				this.fullCombo_ = value;
			}
		}

		// Token: 0x17002770 RID: 10096
		// (get) Token: 0x06008BD8 RID: 35800 RVA: 0x0017418F File Offset: 0x0017238F
		// (set) Token: 0x06008BD9 RID: 35801 RVA: 0x00174197 File Offset: 0x00172397
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScoreId
		{
			get
			{
				return this.scoreId_;
			}
			set
			{
				this.scoreId_ = value;
			}
		}

		// Token: 0x17002771 RID: 10097
		// (get) Token: 0x06008BDA RID: 35802 RVA: 0x001741A0 File Offset: 0x001723A0
		// (set) Token: 0x06008BDB RID: 35803 RVA: 0x001741A8 File Offset: 0x001723A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Star
		{
			get
			{
				return this.star_;
			}
			set
			{
				this.star_ = value;
			}
		}

		// Token: 0x06008BDC RID: 35804 RVA: 0x001741B1 File Offset: 0x001723B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MusicRhythmFinishLevelCsReq);
		}

		// Token: 0x06008BDD RID: 35805 RVA: 0x001741C0 File Offset: 0x001723C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MusicRhythmFinishLevelCsReq other)
		{
			return other != null && (other == this || (this.FullCombo == other.FullCombo && this.ScoreId == other.ScoreId && this.Star == other.Star && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008BDE RID: 35806 RVA: 0x0017421C File Offset: 0x0017241C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.FullCombo)
			{
				num ^= this.FullCombo.GetHashCode();
			}
			if (this.ScoreId != 0U)
			{
				num ^= this.ScoreId.GetHashCode();
			}
			if (this.Star != 0U)
			{
				num ^= this.Star.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008BDF RID: 35807 RVA: 0x0017428D File Offset: 0x0017248D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008BE0 RID: 35808 RVA: 0x00174295 File Offset: 0x00172495
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008BE1 RID: 35809 RVA: 0x001742A0 File Offset: 0x001724A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.FullCombo)
			{
				output.WriteRawTag(8);
				output.WriteBool(this.FullCombo);
			}
			if (this.Star != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Star);
			}
			if (this.ScoreId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.ScoreId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008BE2 RID: 35810 RVA: 0x00174314 File Offset: 0x00172514
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.FullCombo)
			{
				num += 2;
			}
			if (this.ScoreId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScoreId);
			}
			if (this.Star != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Star);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008BE3 RID: 35811 RVA: 0x00174378 File Offset: 0x00172578
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MusicRhythmFinishLevelCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.FullCombo)
			{
				this.FullCombo = other.FullCombo;
			}
			if (other.ScoreId != 0U)
			{
				this.ScoreId = other.ScoreId;
			}
			if (other.Star != 0U)
			{
				this.Star = other.Star;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008BE4 RID: 35812 RVA: 0x001743DC File Offset: 0x001725DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008BE5 RID: 35813 RVA: 0x001743E8 File Offset: 0x001725E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 72U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ScoreId = input.ReadUInt32();
						}
					}
					else
					{
						this.Star = input.ReadUInt32();
					}
				}
				else
				{
					this.FullCombo = input.ReadBool();
				}
			}
		}

		// Token: 0x04003575 RID: 13685
		private static readonly MessageParser<MusicRhythmFinishLevelCsReq> _parser = new MessageParser<MusicRhythmFinishLevelCsReq>(() => new MusicRhythmFinishLevelCsReq());

		// Token: 0x04003576 RID: 13686
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003577 RID: 13687
		public const int FullComboFieldNumber = 1;

		// Token: 0x04003578 RID: 13688
		private bool fullCombo_;

		// Token: 0x04003579 RID: 13689
		public const int ScoreIdFieldNumber = 14;

		// Token: 0x0400357A RID: 13690
		private uint scoreId_;

		// Token: 0x0400357B RID: 13691
		public const int StarFieldNumber = 9;

		// Token: 0x0400357C RID: 13692
		private uint star_;
	}
}
